{extend name="public/base" /} {block name="title"}
<title>用户管理</title>
{__block__}
<link href="//cdn.bootcss.com/datatables/1.10.15/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.css" rel="stylesheet">
<script>
    var indexUserUrl = "{:url('admin/user/index')}";
    var limitUserUrl = "{:url('admin/user/limit')}";
</script>
{/block} {block name="page-heading"}
<div class="col-sm-4">
    <h2>第三方登陆管理</h2>
    <ol class="breadcrumb">
        <li>
            <a href="{:url('admin/index/home')}">主页</a>
        </li>
        <li>
            <strong>第三方登陆管理</strong>
        </li>
    </ol>
</div> {/block} {block name="content"}
<table class="table userTable table-striped table-hover table-condensed">
    <thead>
        <tr>
            <th></th>
            <th>昵称</th>
            <th>平台</th>
            <th>最后登录</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach name="data" item="user"}
        <tr>
            <td>
                <input type="checkbox" value="{$user.id}" name="uid">
            </td>
            <td>{$user.nickname}</td>
            <td>
                {$user.type}
            </td>
            <td>{$user.last_login_time}</td>
            <td>
                <a href="javascript:void(0)" onclick="changeUserStatus('{$user.id}')">
                    {eq name="user.status" value='1'}限制登陆
                        {else/}解除限制
                    {/eq}
                </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
    <tfoot>
        <tr>
            <th></th>
            <th>昵称</th>
            <th>平台</th>
            <th>最后登录</th>
            <th>操作</th>
        </tr>
    </tfoot>
</table>
<a href="javascript:void(0)" class="btn btn-primary" onclick="selectAll('uid')">全选</a>
<a href="javascript:void(0)" class="btn btn-primary" onclick="selectEmpty('uid')">全不选</a>
<a href="javascript:void(0)" class="btn btn-primary" onclick="selectReverse('uid')">反选</a>
<a href="javascript:void(0)" class="btn btn-danger" id="operateSelected">限制/解除选定</a> {/block} {block name="extra"} {/block}{block
name="script"}{__block__}
<script src="//cdn.bootcss.com/datatables/1.10.15/js/jquery.dataTables.min.js"></script>
<script src="//cdn.bootcss.com/datatables/1.10.15/js/dataTables.bootstrap.min.js"></script>
<script src="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.js"></script>
<script src="__CUSTOME__/js/admin.common.js"></script>
<script>
    $(function () {
        $(".userTable").dataTable({
            language: {
                url: "__PLUGINS__/dataTables/Chinese.json"
            },
            "columns": [{
                "orderable": false
            }, null, null, null, {
                "orderable": false
            }],
        });
    });
</script> {/block}